package com.billionsfinance.hessian.service.impl;

import com.billionsfinance.crs.hessian.annotation.HessianPath;
import com.billionsfinance.hessian.service.AddService;

/**
 * @fileName: AddServiceImpl.java
 * @author: WeiHui.Zhang
 * @date: 2016-10-10  18:45
 * @version: v1.0.0
 */
@HessianPath
public class AddServiceImpl implements AddService {

    @Override
    public int add(int a, int b) {
        System.out.println("add(int a, int b) is invoked");
        return a + b;
    }

    @Override
    public long add(long a, long b) {
        System.out.println("add(long a, long b) is invoked");
        return a + b;
    }
}
